package cn.ilovese.collect.datamapper.work;

import cn.ilovese.collect.po.task.Task;
import cn.ilovese.collect.po.work.Work;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Work record);

    int insertSelective(Work record);

    Work selectByPrimaryKey(Integer id);

    Work selectByWorkerAndTask(@Param("taskId")Integer taskid, @Param("userId")Integer userid);

    List<Work> selectByWorker(Integer userid);

    int updateByPrimaryKeySelective(Work record);

    int updateByPrimaryKey(Work record);

    List<Work> selectByTask(Integer task_id);
}